package com.fangdada.demowebfulx.service;

import com.fangdada.demowebfulx.entity.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @Author: fd
 * @Date 2021/11/30 10:03
 * @Description:
 */
public interface UserService {

	//根据id查询用户
	Mono<User> getUserById(int id);//Mono返回单个或零个元素

	//查询所有用户
	Flux<User> getAllUser();//Flux返回多个元素

	//添加用户
	Mono<Void> saveUserInfo(Mono<User> user);

}
